import 'dart:typed_data';

import 'package:inmotion_pro/utils/timestamp_encryptor.dart';
import 'package:inmotion_pro/utils/utils.dart';

// 加解密
mixin EncryptionMixin {
  // AES加密
  TimestampEncryptor get encryptionMixinTimestampAesCryptor {
    final Uint8List fixed16Bytes =
        Utils.generateFixed16Bytes("app.imscv.www");
    return TimestampEncryptor(
        secretKey: Utils.uint8List2HexString(fixed16Bytes));
  }
}
